package collection;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class SortPoint {
    public static void main(String[] args) {
        List<Point>list =new ArrayList<>();
        list.add(new Point(44,78));
        list.add(new Point(12,64));
        list.add(new Point(36,55));
        list.add(new Point(17,37));
        list.add(new Point(53,61));
        System.out.println(list);
        Collections.sort(list, new Comparator<Point>() {
            public int compare(Point o1, Point o2) {
                return 0;
            }
        });
        System.out.println(list);
    }
}
